package tp.model;

import java.util.ArrayList;

public class Train {

	private String nom;
	private String modele;
	private double vitesse;
	private ArrayList<String> places;

	public Train()
	{
		this("", null,0);
	}
	public Train(String nom, String modele, double vitesse) {
		this.nom = nom;
		this.modele = modele;
		this.vitesse = vitesse;
		places = new ArrayList<String>();
	}

	public String getNom() {
		return this.nom;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}

	public String getModele() {
		return this.modele;
	}

	public void setModele(String modele) {
		this.modele = modele;
	}

	public double getVitesse() {
		return this.vitesse;
	}

	public void setVitesse(double vitesse) {
		this.vitesse = vitesse;
	}

	public ArrayList<String> getPlaces() {
		return this.places;
	}

	public void setPlaces(ArrayList<String> places) {
		this.places = places;
	}
}